projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47c7ada
)
(dired-get-filename): When quoting " chars,
author
Richard M. Stallman
<rms@gnu.org>
Sat, 27 Jan 1996 02:18:29 +0000
(
02:18
+0000)
committer
Richard M. Stallman
<rms@gnu.org>
Sat, 27 Jan 1996 02:18:29 +0000
(
02:18
+0000)
handle all of them, including one at start of file name.
lisp/dired.el
patch
|
blob
|
history
diff --git
a/lisp/dired.el
b/lisp/dired.el
index ca69ece98f4f3c1727cf23ac02e5d490ca0fa9f5..39d4a8991219dd931d534a3766f5a44172b44fb0 100644
(file)
--- a/
lisp/dired.el
+++ b/
lisp/dired.el
@@
-1199,7
+1199,7
@@
Optional arg NO-ERROR-IF-NOT-FILEP means return nil if no filename on
;; some ls -b don't escape quotes, argh!
;; This is not needed for GNU ls, though.
(or (dired-string-replace-match
- "\\([^\\]\\
)\"" file "\\1\\\\\""
)
+ "\\([^\\]\\
|\\`\\)\"" file "\\1\\\\\"" nil t
)
file)
"\"")))))
(if (eq localp 'no-dir)